package com.ciwong.epaper.modules.viedoexplantion.imp;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.ciwong.epaper.R;
import com.ciwong.epaper.modules.viedoexplantion.LoadUi;
import com.ciwong.epaper.modules.viedoexplantion.bean.BigViedoQuestion;

import java.util.zip.Inflater;

/**
 * Created by young on 2016/7/5.
 * 加载题干Ui布局类
 * MODIFY  BY
 */
public class TitleLoadUi implements LoadUi {
    private TextView title_tv;

    @Override
    public View loadLayout(Object  o, Context context,Boolean b) {
        BigViedoQuestion bigViedoQuestion=(BigViedoQuestion)o;
        String title =bigViedoQuestion.getModule_type_name();
        View view= LayoutInflater.from(context).inflate(R.layout.title,null);
        title_tv=(TextView)view.findViewById(R.id.title_tv);
        title_tv.setText(title);
        return view;
    }
}
